home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Headers / eointerface / EOColumnAssociation.h < prev    next >
Encoding:
Text File  |  1994-09-15  |  1.9 KB  |  59 lines

  1. // EOColumnAssociation.h
  2. // Enterprise Objects Framework
  3. // Copyright (c) 1993, NeXT Computer, Inc.  All rights reserved. 
  4.  
  5. #import "EOAssociation.h"
  6. #import "EOController.h"
  7. #import "NXTableView.h"
  8.  
  9. // The EOColumnAssociation object is the subclass of EOAssociation responsible
  10. // for making an assocation between a column of a NXTableView and methods in
  11. // the modelling objects for that column.  The EOColumnAssociations take over
  12. // the column identifiers to point to themselves.  Furthermore, all of the
  13. // EOColumnAssociations associated with a given NXTableView must be
  14. // associations of the same EOController.
  15.  
  16. @class NSArray,EOController,NXTableView, NXTableVector;
  17.  
  18.  
  19. @interface EOColumnAssociation : EOAssociation
  20. {
  21.     NXTableVector *vector;
  22.     NXTableView *tableView;    // The TableView our column is in
  23.                     // NOTE: NEVER use the destination
  24.                     // ivar in a ColumnAssociation; it's
  25.                     // always tableView instead.
  26.     unsigned updating : 1;    // This flag indicated we're in the
  27.                     // middle of some higher-level operation,
  28.                     // and thus that any message from the TV
  29.                     // should be ignored.
  30.     unsigned _unused : 31;
  31.     void *_values;
  32. }
  33.  
  34. // Designated initializer for EOColumnAssociation
  35. - initWithController:(EOController *)aController 
  36.     key: (NSString *)aKey destination:(NXTableVector *)theTV;
  37.  
  38. - (NXTableView *)tableView;
  39. - (void)setTableView:(NXTableView *)newTableView;
  40.  
  41. // These following methods should not be invoked directly.
  42.  
  43. // Methods used by NXTableView to ask for values (messages passed on to
  44. // appropriate association objects).
  45. - getValueFor:identifier at:(unsigned int) aPosition into:aValue;
  46. - setValueFor:identifier at:(unsigned int) aPosition from:aValue;
  47.  
  48. // Methods that then actually get invoked to return the data (i.e., the above
  49. // methods call these methods)
  50. - getValueAt:(unsigned int) aPosition into:aValue;
  51. - setValueAt:(unsigned int) aPosition from:aValue;
  52.  
  53.  
  54. @end
  55.  
  56.  
  57.  
  58.  
  59.